<?php
/**
*   @description 博客路由
*   @author Xiaohui Zeng
*   @date 2019/12/1
*/
use think\facade\Route;
Route::rule('/', 'blog/index/index', 'get')->ext('html'); // 首页
Route::rule('index', 'blog/index/index', 'get'); // 首页

Route::get('list1/:classId-:page', 'blog/lists/index?type=1')->pattern(['classId' => '\w+', 'page' => '\d+'])->ext('html'); // 列表1;
Route::get('list2/:classId-:page', 'blog/lists/index?type=2')->pattern(['classId' => '\w+', 'page' => '\d+'])->ext('html'); // 列表2;

Route::get('detail/:id', 'blog/detail/index')->ext('html'); // 详情;
Route::get('singPage/:classId-:page', 'blog/singPage/index')->pattern(['classId' => '\w+', 'page' => '\d+'])->ext('html'); // 时间轴 关于我;
Route::get('tag/:tagId-:page', 'blog/tagList/index')->pattern(['tagId' => '\w+', 'page' => '\d+'])->ext('html'); // tag标签;

Route::get('likeClick/click', 'blog/LikeClick/click'); // 阅读量
Route::get('likeClick/like', 'blog/LikeClick/like'); // 点赞

Route::get('commentReply/index', 'blog/CommentReply/index'); // 获取评论列表
Route::post('commentReply/add', 'blog/CommentReply/add'); // 新增或回复评论
Route::get('commentReply/like', 'blog/CommentReply/like'); // 点赞
